﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tester
{
    public partial class Form1 : Form
    {
        private int num1, num2;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            num1 = 2;
            num2 = 10;
            label1.Text = num1.ToString();
            label2.Text = num2.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            setNum1Num2(ref num1);
            label1.Text = num1.ToString();
            label2.Text = num2.ToString();
        }

        private void setNum1Num2(ref int num) {
            
            num = 4;

        }
    }
}
